package com.zl.controller;

import com.zl.feign.CustomerFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author zl
 * @date 2023/3/20
 * @apiNote
 */
@RestController
public class CustomerController {

   /* @Autowired
    @Qualifier("customerFeign")*/
    @Resource
    private CustomerFeign customerFeign;
    @GetMapping("/CustomerRent")
    public String CustomerRent(){
        System.out.println("customer来租车了");
        String rent = customerFeign.rent();
        System.out.println(rent);
        return rent;
    }
}
